//
//  ImageTool.m
//  FastDoctor
//
//  Created by 程建良 on 16/7/8.
//  Copyright © 2016年 sc. All rights reserved.
//

#import "ImageTool.h"

@implementation ImageTool
//归档
-(void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:_image forKey:@"image"];
    
}
//解档
-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        
        self.image = [aDecoder decodeObjectForKey:@"image"];
        
    }
    return self;
}
@end
